package com.tmall.tmall.mapper;

import com.tmall.tmall.pojo.Comment;
import com.tmall.tmall.pojo.CommentRt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductOrderEvaluateMapper {
    @Insert("insert into comment (pid, uid, content, create_date, rate) VALUE (#{productId},#{uid},#{content},#{createDate},#{rate})")
    void save(Comment comment);

    List<CommentRt> page(String username, String productName, Integer productId, String content);

    void update(Comment comment);
}
